package zuoye15;

public class zuoye444 {
    public static void main(String[] args) {
//        4：求1-1000之间的数的和
        int sum = 0;
        for (int i = 1; i <=1000; i++) {
             sum+=i;
        }
        System.out.println(sum);
    }
}
